package com.settlement.system.model.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fasterxml.jackson.annotation.JsonFormat;
import com.settlement.system.common.base.BaseEntity;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
        import java.math.BigDecimal;
        import java.time.LocalDateTime;

/**
* <p>
* 小红书微信明细
* </p>
*
* @author huangrensen
* @since 2024-07-02
*/
@Data
@AllArgsConstructor
@NoArgsConstructor
public class XhsWechatDetail extends BaseEntity implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
    * ID
    */
    private String id;


    /**
    * 店铺ID
    */
    private Long storeId;
    @TableField(exist = false)
    private String storeName;


    /**
    * 入账时间
    */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    private LocalDateTime billTime;
    @TableField(exist = false)
    private LocalDateTime startBillTime;
    @TableField(exist = false)
    private LocalDateTime endBillTime;


    /**
    * 交易类型
    */
    private String tradeType;


    /**
    * 订单号
    */
    private String orderNo;


    /**
    * 收款账户类型
    */
    private String accountType;


    /**
    * 收入
    */
    private BigDecimal incomeAmount = BigDecimal.ZERO;


    /**
    * 支出
    */
    private BigDecimal payAmount = BigDecimal.ZERO;


    /**
    * 账户余额
    */
    private BigDecimal balanceAmount = BigDecimal.ZERO;

    @TableField(exist = false)
    private String billMonth;
    @TableField(exist = false)
    private String tableName;

    // 截取长度超出范围的字段
    public void cutString() {
    }

}
